//
//  ICEWDPOpenOutside.m
//  ICEH5Bridge
//
//  Created by wujianrong on 2017/8/15.
//  Copyright © 2017年 wanda. All rights reserved.
//

#import "ICEEMOpenOutside.h"
#import "ICEUI.h"
#import "ICECore.h"
#import "ICEJavaScriptBridge.h"

@implementation ICEEMOpenOutside
-(void)openOutSide:(NSDictionary*)args
{
    NSDictionary* param = [args objectForKey:@"param"];
    NSString* url = [param objectForKey:@"url"];
    
    
    [[UIApplication sharedApplication]openURL:[[NSURL alloc]initWithString:ICESafeString(url)]];
    NSDictionary* ret = nil;
    ret = @{
            @"status":@"success",
            };
    
    [ICEJavaScriptBridge sendReslutToJS:ret callInfo:args];
}
@end
